#include <iostream>
#include <algorithm>

using namespace std;
int n0, n1, n;

int ans1, ans2;
int dif;
int _Max = 99999999;
int ret1, ret2;
int main()
{
    cin >> n0 >> n1 >> n;
    for (ans1 = 1, ans2 = n - 1; ans1 + ans2 == n,ans1!=0,ans2!=0; ans1++, ans2--)
    {
        if (n0 % ans1 != 0 || n1 % ans2 != 0)
            continue;
        int a = n0 / ans1;
        int b = n1 / ans2;
        if (a == 1 || b == 1)
            continue;
        int ret = abs(a - b);
        if (ret < _Max)
        {
            _Max = ret;
            ret1 = ans1;
            ret2 = ans2;
        }

    }
    if (_Max == 99999999)
    {
        cout << "No Solution" << endl;

    }
    else
    {
        cout << ret1 << " " << ret2;
    }
    return 0;
}
